package com.xquant.common.engine.xPP.cxf;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * newCloud 读取计算服务地址端口
 */
@Service("XQuantPPConfig")
@EnableScheduling
@ConfigurationProperties(prefix = "webservice.xquant.pp")
public class XQuantPPConfig {

    public String[] hostPort;
    public String threads;
    public String connectionTimeout;
    public String receiveTimeout;

    public String getThreads() {
        return threads;
    }

    public void setThreads(String threads) {
        this.threads = threads;
    }

    public String getConnectionTimeout() {
        return connectionTimeout;
    }

    public void setConnectionTimeout(String connectionTimeout) {
        this.connectionTimeout = connectionTimeout;
    }

    public String getReceiveTimeout() {
        return receiveTimeout;
    }

    public void setReceiveTimeout(String receiveTimeout) {
        this.receiveTimeout = receiveTimeout;
    }

    public String[] getHostPort() {
        return hostPort;
    }

    public XQuantPPConfig setHostPort(String[] hostPort) {
        this.hostPort = hostPort;
        return this;
    }

    @PostConstruct
    private void init() {

    }


}
